/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.Page;
import com.hboxs.asl.Pageable;
import com.hboxs.asl.dao.CaseDao;
import com.hboxs.asl.entity.Case;
import com.hboxs.asl.entity.Member;
import com.hboxs.asl.service.CaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Service - 案例
 */
@Service("caseServiceImpl")
public class CaseServiceImpl extends BaseServiceImpl<Case, Long> implements CaseService {

    @Resource(name = "caseDaoImpl")
    private CaseDao caseDao;

    @Resource(name = "caseDaoImpl")
    public void setBaseDao(CaseDao caseDao) {
        super.setBaseDao(caseDao);
    }


    @Override
    public Page<Case> fingCasePage(Pageable pageable, Member teacher) {
        return caseDao.fingCasePage(pageable, teacher);
    }
}
